package com.hyw.supply.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;


@Data
public class OrderQuery  extends BaseCommonPage{


    @Schema(title = "orderNo", description = "订单编号")
    private String orderNo;

    @Schema(title = "goodsName", description = "商品名称")
    private String goodsName;

    @Schema(title = "skuCode", description = "sku编码")
    private String skuCode;

    @Schema(title = "receiver", description = "收货人名称")
    private String receiver;

    @Schema(title = "startPlaceOrderDate", description = "开始下单时间，格式yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startPlaceOrderDate;

    @Schema(title = "startPlaceOrderDate", description = "结束下单时间，格式yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endPlaceOrderDate;

    @Schema(title = "receiverPhone", description = "收货人手机号")
    private String receiverPhone;

    @Schema(title = "deliveryMode", description = "发货方式")
    private String deliveryMode;

    @Schema(title = "receiverAddress", description = "收货人地址")
    private String receiverAddress;

    @Schema(title = "sellingMode", description = "售卖方式")
    private String sellingMode;

    @Schema(title = "remarks", description = "备注")
    private String remarks;

    @Schema(title = "orderStatus", description = "订单状态(0待付款 1待发货-待备货 2待发货-出库失败 3待发货-出库中 4待发货-部分出库 5退单待审核 6待收货 7已完成 8已退单 9已取消)")
    private Integer orderStatus;

    @Schema(title = "idList", description = "id集合，用于勾选导出")
    private List<Long> idList;


    @Schema(description = "开始发货时间,格式yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startDeliveryDate;

    @Schema(description = "结束发货时间,格式yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endDeliveryDate;

    @Schema(title = "enterprise", description = "企业主体")
    private String enterprise;

}
